package com.stu.entity.service;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.stu.entity.base.BaseEntity;


@Entity
@Table(name = "NEWS")
public class News extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String title;//标题
	private String link;// 链接
	private String newsTime;//新闻时间
	private String content;//新闻内容
	private String summary;//概要
	
	@Column(name = "summary", length = 500)
	public String getSummary() {
		return summary;
	}
	
	@Column(name = "title", length = 200)
	public String getTitle() {
		return title;
	}
	@Column(name = "link", length = 500)
	public String getLink() {
		return link;
	}
	@Column(name = "newsTime")
	public String getNewsTime() {
		return newsTime;
	}
	@Column(name = "content", length = 10000)
	public String getContent() {
		return content;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public void setNewsTime(String newsTime) {
		this.newsTime = newsTime;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public News() {
		super();
	}
	public News(String uuid) {
		super(uuid);
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}

	@Override
	public String toString() {
		return "News [title=" + title + ", link=" + link + ", newsTime=" + newsTime + ", content=" + content
				+ ", summary=" + summary + "]";
	}
	
}
